import request from "../utils/request"


export const queryTaskList = (data:any)=>{
    return request({
        url:`/admin/task/list/query`,
        method:'POST',
        data
    })
}

export const saveTask = (data:any)=>{
    return request({
        url:`/admin/task/list/save`,
        method:'POST',
        data
    })
}
export const queryCrontab = (data:any)=>{
    return request({
        url:`/admin/task/crontab/query`,
        method:'POST',
        data
    })
}

export const saveCrontab = (data:any)=>{
    return request({
        url:`/admin/task/crontab/save`,
        method:'POST',
        data
    })
}
export const updateCrontab = (data:any)=>{
    return request({
        url:`/admin/task/crontab/save`,
        method:'POST',
        data
    })
}

export const runCrontab = (data:any)=>{
    return request({
        url:`/admin/task/crontab/run`,
        method:'POST',
        data
    })
}
